<?php

use Illuminate\Database\Seeder;
use App\Models\User;
class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
       $users=factory(User::class)->times(50)->make();
       User::insert($users->makeVisible(['password','remember_token'])->toArray());
       $user=User::find(1);
       $user->name="wen3742";
       $user->email="123@test.com";
       $user->password=bcrypt('wen555');
       $user->save();

    }
}
